package exam.business.service;

import java.util.List;

import exam.common.key.KeyStudent;
import exam.model.dao.TStudentDAO;
import exam.model.entity.TStudentEntity;
import exam.system.business.AbstractService;
import exam.system.business.BusinessServiceInfo;

public class StudentGetListService extends AbstractService {
	// studentDAO
	public TStudentDAO studentDAO = new TStudentDAO();

	@Override
	public String executeService(BusinessServiceInfo serviceInfo)
			throws Exception {
		// TODO Auto-generated method stub
		List<TStudentEntity> tStudentEntityList = studentDAO.selectListStudent();
		serviceInfo.put(KeyStudent.T_STUDENT_ENTITY_LIST, tStudentEntityList);
		return "pass";
	}
}
